package com.liam.lotterysystem.service;

import com.liam.lotterysystem.controller.param.CreatePrizeParam;
import com.liam.lotterysystem.controller.param.PageParam;
import com.liam.lotterysystem.service.dto.PageListDTO;
import com.liam.lotterysystem.service.dto.PrizeDTO;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author: LiamLMK
 * @CreateTime: 2024-10-20
 * @Description:
 * @Version: 1.0
 */

@Service
public interface PrizeService {
    /**
     * 创建单个奖品
     * @param param 奖品属性
     * @param picFile 上传的奖品图片
     * @return 奖品Id
     */
    Long createPrize(CreatePrizeParam param, MultipartFile picFile);

    /**
     * 翻页查询列表
     * @param param
     * @return
     */
    PageListDTO<PrizeDTO> findPrizeList(PageParam param);
}
